package DataLayer.ImageDataContainer.ImageComponentsInfo;

public interface ICharacterStatistics {

    /**
     * sets the number of characters
     * @param num
     */
    public void setNumberOfChar(int num);

    /**
     *
     * @return max from the occMatrix
     */
    public int getMaxApp();

    /**
     * @param c
     * @return the index of the character in the matrix
     */
    public int getCharIndex(char c);

    /**
     *@return the occurence of a letter after the two letters
     *@param char3 - actual letter
     *       char1,char2 - the two letters before the actual
     */
    public double getOcc(char letter1, char letter2, char letter3);

    /**
     * create the occurrence matrix from a text file
     * @param filePath - name of the text file
     */
    public void createOccMatrix(String filePath);

    /**
     * write the matrix to the harddisk
     */
    public void exportOccMatrix();

    /**
     * load the occurrence matrix from the harddisk
     */
    public void loadOccMatrix();
}
